// vite.config.ts
import { defineConfig } from "file:///D:/work/code/qianzishan/node_modules/.store/vite@4.5.3/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/work/code/qianzishan/node_modules/.store/@vitejs+plugin-vue@4.6.2/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import AutoImport from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-auto-import@0.15.3/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-vue-components@0.24.1/node_modules/unplugin-vue-components/dist/vite.mjs";
import Icons from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-icons@0.16.6/node_modules/unplugin-icons/dist/vite.mjs";
import IconsResolver from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-icons@0.16.6/node_modules/unplugin-icons/dist/resolver.mjs";
import { ElementPlusResolver } from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-vue-components@0.24.1/node_modules/unplugin-vue-components/dist/resolvers.mjs";
import ElementPlus from "file:///D:/work/code/qianzishan/node_modules/.store/unplugin-element-plus@0.7.2/node_modules/unplugin-element-plus/dist/vite.mjs";
import { fileURLToPath, URL } from "node:url";
var __vite_injected_original_import_meta_url = "file:///D:/work/code/qianzishan/vite.config.ts";
var vite_config_default = defineConfig({
  server: {
    //vue3 vite配置热更新不用手动刷新
    hmr: true,
    port: 8080,
    host: "0.0.0.0",
    proxy: {
      // 本地开发环境通过代理实现跨域，生产环境使用 nginx 转发
      // 正则表达式写法
      "^/api": {
        target: "https://engine3.bjblackhole.com",
        // 后端服务实际地址
        // target: 'http://192.168.0.190:8087', // 后端服务实际地址
        // target: 'http://172.1.2.144:3002', // 后端服务实际地址
        changeOrigin: true,
        //开启代理
        rewrite: (path) => path.replace(/^\/api/, "")
      }
    }
  },
  plugins: [
    vue(),
    AutoImport({
      //安装两行后你会发现在组件中不用再导入ref，reactive等
      imports: ["vue", "vue-router"],
      resolvers: [
        ElementPlusResolver(),
        // 自动导入图标组件
        IconsResolver({
          prefix: "Icon"
        })
      ],
      //存放的位置
      dts: "src/auto-import.d.ts"
    }),
    Components({
      // 引入组件的,包括自定义组件
      resolvers: [
        ElementPlusResolver(),
        // 自动导入图标组件
        IconsResolver({
          enabledCollections: ["ep"]
        })
      ],
      // 存放的位置
      dts: "src/components.d.ts"
    }),
    ElementPlus({
      // options
    }),
    // 自动导入图标组件
    Icons({
      autoInstall: true
    })
    // legacyPlugin({
    //   targets: ['chrome 52'],  // 需要兼容的目标列表，可以设置多个
    //   additionalLegacyPolyfills: ['regenerator-runtime/runtime'] // 面向IE11时需要此插件
    // })
  ],
  resolve: {
    alias: {
      "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
    },
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json"]
  },
  css: {
    preprocessorOptions: {
      // 全局样式引入
      scss: {
        additionalData: '@import "./src/assets/styles/common.scss";',
        // additionalData: '@import "/src/assets/styles/common.scss";',
        javascriptEnabled: true
      }
    }
  },
  // base:"/eco/",
  base: "/qzs",
  build: {
    emptyOutDir: true,
    minify: "terser",
    target: "es2015",
    outDir: "dist",
    assetsDir: "assets/",
    terserOptions: {
      compress: {
        keep_infinity: true,
        // Used to delete console in production environment
        drop_console: true
      }
    },
    chunkSizeWarningLimit: 2e3
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3b3JrXFxcXGNvZGVcXFxccWlhbnppc2hhblwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRDpcXFxcd29ya1xcXFxjb2RlXFxcXHFpYW56aXNoYW5cXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3Zp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